<!-- 导航条 -->
<template>
  <div id="nav">
        <div class="left"><slot name="left">左边</slot></div>
        <div class="center"><slot name="center">中间</slot></div>
        <div class="right"><slot name="right">右边</slot></div>
  </div>
</template>

<script>
export default {
  name:"navbaritem"
}

</script>
<style  scoped>
        #nav{
             display: flex;
             background: red;
             color: #ffffff;
             box-shadow: 0 1px 1px rgba(100, 100, 100, .1);
              position: fixed;
              left: 0;
              right: 0;
              top: 0;
              height: 44px;
              z-index: 9;
        }
        .center{
             flex: 1;
             text-align: center;
             line-height: 44px;
        }
        .left{
            width: 60px;
            height: 44px;

        }
        .right{
            width: 60px;
            height: 44px;
        }


</style>